package Day12;

import org.ietf.jgss.Oid;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.Scanner;

/**
 * @Author kalista
 * @Description
 * @Date 2020/11/18  10:45
 **/
public class ExceptionTest {
    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("请输入数字：");
//        int i = scanner.nextInt();
//        System.out.println(i);


//        System.out.println("我爱中国");
//        System.out.println("我爱中国");
//        System.out.println(5/0);
//        int[] s = new int[3];
//        System.out.println("我爱中国");
//        System.out.println(s[4]);
//        System.out.println("我爱中国");



//        String a = null;
//        System.out.println(a.trim());


//        File file = new File("");
//
//        FileInputStream fileInputStream = new FileInputStream("");


        try {
            System.out.println(5/0);
        }catch (ArithmeticException e){
            // 打印异常信息
            System.out.println(e.getMessage());
        }catch (NullPointerException e){

        }catch (Exception e){

        }

        System.out.println("我爱我的祖国");





    }
}
